package base.container;

import java.util.ArrayList;
import java.util.Collection;

public class TestEhancedFor {
	public static void main(String[] args) {
		int[] arr = {1,2,3,4,5};
		for(int i:arr){
			System.out.println(i);
		}
		
		
		Collection collection = new ArrayList();
		collection.add(new String("aaa"));
		collection.add(new String("bbb"));
		collection.add(new String("ccc"));
		
		for(Object c:collection){
			System.out.println(c);
		}
	}
}
